package com.example.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.entity.dto.PurtbDto;
import com.example.entity.dto.RequisitionPurchaseDto;
import com.example.entity.dto.pc.DDPHZBlistDto;
import com.example.entity.mysql.BuyingRequisition;
import com.example.entity.vo.RequisitionPurchaseVo;
import com.example.entity.vo.pc.DDPHZBlistVo;
import com.example.entity.yifei.Purta;
import com.example.entity.yifei.Purtb;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-19
 */
public interface PurtbMapper extends BaseMapper<Purtb> {

    @DS("demo")
    String selectRecentlyTc004(String ph);


    @DS("demo")
    List<BuyingRequisition> selectAllBuyingRequisition();

    @DS("demo")
    Page<RequisitionPurchaseVo> selectRequisitionPurchaseVoPage(RequisitionPurchaseDto requisitionPurchaseDto);


    @DS("demo")
    void updateByTb001WithTb002WithTb003(String tb001, String tb002, String tb003 ,String tb039,Double number,Double udf51);

    @DS("demo")
    List<Purta> selectPurtaList();

    List<DDPHZBlistVo> queryPhKc(String ph);


    List<RequisitionPurchaseVo> selectPurtbListByTb001WithTb002(List<PurtbDto> purtbDtos);
}
